
[dbo].[asi_FindProductBO]
CREATE PROCEDURE [dbo].[asi_FindProductBO]
(
@productKey uniqueidentifier
)
AS
BEGIN
declare @productTypeKey uniqueidentifier
SELECT @productTypeKey = ProductTypeKey from ProductMain
WHERE ProductMain.ProductKey = @productKey
IF (@productTypeKey IS NULL)
BEGIN
RAISERROR ('Cannot find Product', 16, 1)
RETURN
END
select BusinessObjectName from ProductType
where ProductTypeKey = @productTypeKey
END
GO